package com.px.chapter_Nov_1;

import java.util.Scanner;

public class text5 {
    public static void main(String[] args) {
        Scanner scanner =new Scanner(System.in);
        double money=scanner.nextInt();
        double revenu;
        if (money>5_000){
          if (money>5_000&&money<=8_000){
              revenu=(money-5_000)*0.03;
              System.out.println(revenu);
          }
          if (money>8_000&&money<=17_000){
              revenu=(money-5000)*0.1-210;
              System.out.println(revenu);
          }
          if (money>17_000&&money<=30_000){
              revenu=(money-5000)*0.2-1410;
              System.out.println(revenu);
          }
          if (money>30_000&&money<=40_000){
              revenu=(money-5000)*0.25-2660;
              System.out.println(revenu);
          }
          if (money>40_000&&money<=60_000){
              revenu=(money-5000)*0.3-4410;
              System.out.println(revenu);
          }
          if (money>60_000&&money<85_000){
              revenu=(money-5000)*0.35-7160;
              System.out.println(revenu);
          }
          if (money>85_000){
              revenu=(money-5000)*0.45-15160;
              System.out.println(revenu);
          }
        }else {
            System.out.println("恭喜你不需要征税");

        }


    }
}
